//
//  RACVC.m
//  SYPerfectDemo
//
//  Created by Lssyyy on 2018/7/12.
//  Copyright © 2018年 Lssyyy. All rights reserved.
//

#import "RACVC.h"

@interface RACVC ()
@property (weak, nonatomic) IBOutlet UITextField *nameTF;
@property (weak, nonatomic) IBOutlet UIButton *myButton;
@property (weak, nonatomic) IBOutlet UITextField *passwordTF;

@end

@implementation RACVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
}

//- (void)config{
//    [[self.nameTF rac_signalForControlEvents:UIControlEventEditingChanged]subscribeNext:^(id x) {
//        NSLog(@"%@",x);
//    }];
//    [[self.nameTF rac_textSignal]subscribeNext:^(id x) {
//         NSLog(@"改变%@",x);
//    }];
//    
//    [[_myButton rac_signalForControlEvents:UIControlEventTouchUpInside]subscribeNext:^(id x) {
//        _myButton.backgroundColor = [UIColor cyanColor];
//        _myButton.frame = CGRectMake(40, 40, 80, 80);
//    }];
//    [[_myButton rac_valuesAndChangesForKeyPath:@"frame" options:NSKeyValueObservingOptionNew observer:self]subscribeNext:^(RACTuple *x) {
////        CGRect *rect = CFBridgingRetain(x.first);
////        NSLog(@"hh%@",rect->size);
////        NSLog(@"改变的尺寸%@====%@====%@",x,x.first,x.second);
//    }];
//    
//}

@end
